
//let role = uni.getStorageSync('role')//把登录后的
import {OREDR_STATUS,USER_OREDR_STATUS} from '@/utils/global.js';
const tabOrderStatus = {
	state: {
		orderStatus:OREDR_STATUS[0],
		userOrderStatus:USER_OREDR_STATUS[0],
		pageBackDelta:2,
		orderTotalTime:30 * 60
	},
	mutations: {
		setOrderTotalTime(state,num){
			state.orderTotalTime = num;
		},
		setOrderStatus(state,orderStatus){
			state.orderStatus = orderStatus;
			console.log(state.orderStatus )
			
		},
		setUserOrderStatus(state,orderStatus){
			state.userOrderStatus = orderStatus;
			console.log(state.userOrderStatus )
			
		},
		setPageBackDelta(state,delta){
			state.pageBackDelta = delta;
			console.log(state.pageBackDelta )
			
		}
	},
}

export default tabOrderStatus
